#pragma once

template<class T, int SIZE>
class feCache
{
	T Data[SIZE];
	
public:
	feCache()				   { ZeroMemory(Data, SIZE*sizeof(T)); }
	bool Set(int iId, T &iObj) { if(iId >= SIZE) return false; Data[iId] = iObj; return true; }
	T	 Get(int iId)		   { return Data[iId]; }	
};